package com.HomeWorkhsp.Chapter08.homework.homework03;

public class Teacher extends Staff{
    private double classSal;
    private int classDay;

    public Teacher(double salary, String name){
        super(salary , name);
    }

    public double getClassSal() {
        return classSal;
    }

    public void setClassSal(double classSal) {
        this.classSal = classSal;
    }

    public int getClassDay() {
        return classDay;
    }

    public void setClassDay(int classDay) {
        this.classDay = classDay;
    }

    public void printSal(){
        System.out.println(getName() + " 老师 " + ((classSal * classDay + getSalary()) * getSalMonth() ));
    }
}
